package com.mybatisplus.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatisplus.bean.User;
import com.mybatisplus.mapper.UserMapper;
import com.mybatisplus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Title: UserServiceImpl
 * Description: IService 实现类（ 泛型：M 是 mapper 对象，T 是实体 ）
 *
 * @author gejx
 * @version V1.0
 * @date 2021-12-16
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> select() {
        List<User> users = userMapper.selectList(null);
        return users;
    }
}
